﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace WPF_TY_UI
{
    public class LSBComboBox : ComboBox
    {
        #region 附加属性 CornerRadius
        public CornerRadius CornerRadius { get { return (CornerRadius)GetValue(CornerRadiusProperty); } set { SetValue(CornerRadiusProperty, value); } }
        public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(LSBComboBox), new PropertyMetadata(default(CornerRadius)));
        #endregion

        #region 附加属性 WaterMark
        public string WaterMark { get { return (string)GetValue(WaterMarkProperty); } set { SetValue(WaterMarkProperty, value); } }
        public static readonly DependencyProperty WaterMarkProperty = DependencyProperty.Register("WaterMark", typeof(string), typeof(LSBComboBox), new PropertyMetadata(default(string)));
        #endregion


        #region 附加属性 Icon
        public object Icon { get { return (object)GetValue(IconProperty); } set { SetValue(IconProperty, value); } }
        public static readonly DependencyProperty IconProperty = DependencyProperty.Register("Icon", typeof(object), typeof(LSBComboBox), new PropertyMetadata(default(object)));
        #endregion      

        #region 附加属性 WaterMarkForeground
        public SolidColorBrush WaterMarkForeground { get { return (SolidColorBrush)GetValue(WaterMarkForegroundProperty); } set { SetValue(WaterMarkForegroundProperty, value); } }
        public static readonly DependencyProperty WaterMarkForegroundProperty = DependencyProperty.Register("WaterMarkForeground", typeof(SolidColorBrush), typeof(LSBComboBox), new PropertyMetadata(default(SolidColorBrush)));
        #endregion
    }
}
